package com.lagou.manager;
import com.lagou.service.DemoService;
import com.lagou.service.DemoService2;

import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.rpc.RpcContext;
import org.springframework.stereotype.Component;

@Component
public class DemoManager {
    @Reference(version = "1.0.0")
    private DemoService demoService;

    @Reference(version = "1.0.0")
    private DemoService2 demoService2;

    public String sayHello(String name){
        String s = demoService.sayHello(name);
        return s;
    }

    public String sayHello2(String name){
        String s = demoService2.sayHello2(name);
        return s;
    }
}
